<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head >
    <meta charset="UTF-8">
    <title>管理员主页</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}">

</head>
<body>
<div th:insert="~{public/publicTop::admintop}"></div>

<div style="width: 70%;margin: auto;text-align: center">
    <h2 th:text="${msg}" th:if="${!#strings.isEmpty(msg)}"></h2>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>管理员主页</legend>
    </fieldset>
    <div class="layui-bg-gray" style="padding: 30px;">
        <div class="layui-row layui-col-space15">
            <a th:href="@{/admin/order/1}" class="layui-col-md6">
                <div>
                    <div class="layui-panel">
                        <div style="padding: 50px 30px;">订单管理</div>
                    </div>
                </div>
            </a>
            <a class="layui-col-md6" th:href="@{/admin/toGood}">
                <div>
                    <div class="layui-panel">
                        <div style="padding: 50px 30px;">商品管理</div>
                    </div>
                </div>
            </a>
            <a th:if="${ session.loginUser.getLeave()=='2'}" class="layui-col-md6" th:href="@{/admin/toAddAdmin}">
                <div>
                    <div class="layui-panel">
                        <div style="padding: 50px 30px;">管理员管理</div>
                    </div>
                </div>
            </a>
            <a class="layui-col-md6" th:href="@{/ad/toads}">
                <div>
                    <div class="layui-panel">
                        <div style="padding: 50px 30px;">广告</div>
                    </div>
                </div>
            </a>

        </div>
    </div>
</div>
</body>
</html>